package com.mdx.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;

/**
 * 班级
 */
@TableName("t_class")
public class ClassBean {

    /**
     * 主键
     */
    @TableId(value = "pk_classId",type = IdType.AUTO)
    private int classId;

    /**
     * 班级名
     */
    @TableField("f_className")
    private String className;

    /**
     * 负责人
     */
    @TableField("f_head")
    private String head;

    /**
     * 负责人电话
     */
    @TableField("f_headTel")
    private String headTel;

    /**
     * 区域实体
     */
    @TableField(exist = false)
    private RegionBean regionBean;

    /**
     * 创建时间
     */
    @TableField("f_creatDate")
    private LocalDate creatDate = LocalDate.now();

    /**
     *人员数量
     */
    @TableField("f_nums")
    private int nums;

    @Override
    public String toString() {
        return "ClassBean{" +
                "classId=" + classId +
                ", className='" + className + '\'' +
                ", head='" + head + '\'' +
                ", headTel='" + headTel + '\'' +
                ", regionBean=" + regionBean +
                ", creatDate=" + creatDate +
                ", nums=" + nums +
                '}';
    }

    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getHead() {
        return head;
    }

    public void setHead(String head) {
        this.head = head;
    }

    public String getHeadTel() {
        return headTel;
    }

    public void setHeadTel(String headTel) {
        this.headTel = headTel;
    }

    public RegionBean getRegionBean() {
        return regionBean;
    }

    public void setRegionBean(RegionBean regionBean) {
        this.regionBean = regionBean;
    }

    public LocalDate getCreatDate() {
        return creatDate;
    }

    public void setCreatDate(LocalDate creatDate) {
        this.creatDate = creatDate;
    }

    public int getNums() {
        return nums;
    }

    public void setNums(int nums) {
        this.nums = nums;
    }

    public ClassBean() {
    }

    public ClassBean(String className, String head, String headTel, RegionBean regionBean, LocalDate creatDate, int nums) {
        this.className = className;
        this.head = head;
        this.headTel = headTel;
        this.regionBean = regionBean;
        this.creatDate = creatDate;
        this.nums = nums;
    }
}
